package com.fuyao.cloud.admin.flow.leave;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.admin.flow.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tbl_hr_leave")
public class Leave extends BaseModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "id")
    private String id;
    //流程实例id
    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;
    //申请人
    @ApiModelProperty(value = "申请人")
    private String applyerCode;
    //标题
    @ApiModelProperty(value = "标题")
    private String title;
    //类型
    @ApiModelProperty(value = "类型")
    private String type;
    //请教天数
    @ApiModelProperty(value = "请教天数")
    private Float days;
    //开始时间
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;
    //结束时间
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    //公司id
    @ApiModelProperty(value = "公司id")
    private String companyId;
    //公司名称
    @ApiModelProperty(value = "公司名称")
    private String companyName;
    //部门id
    @ApiModelProperty(value = "部门id")
    private String deptId;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    //说明
    @ApiModelProperty(value = "说明")
    private String note;
    //状态 {0：草稿，1：审批中，2：完成 99 ：终止}
    @ApiModelProperty(value = "状态")
    private Integer status;
}
